#ifndef CSEARCHCTRL_H
#define CSEARCHCTRL_H

#include "CSearchCtrl_global.h"


#include <QWidget>
#include <QPushButton>
#include <QLineEdit>
#include <QHBoxLayout>


QT_BEGIN_NAMESPACE
namespace Ui {
class Widget;
}
QT_END_NAMESPACE

class CSEARCHCTRL_EXPORT CSearchCtrl : public QWidget
{
    Q_OBJECT
public:
    CSearchCtrl(QWidget *parent = nullptr);
    ~CSearchCtrl();
    void GetSearchText(QString & strText);

private slots:
    void OnSearch();
signals:
    void SearchClicked(const QString & strText);
private:
    void Init();

private:
    QPushButton * m_pBtnSearch;//搜索
    QLineEdit * m_pEdit;//输入框
};

#endif // CSEARCHCTRL_H
